package com.hnkywl.sts.entity.jhgl;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.base.Sjzdz;
import com.hnkywl.sts.entity.sys.Cd;
import com.hnkywl.sts.entity.sys.Gg;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * Created with IntelliJ IDEA.
 * User: ZHUCHG
 * Date: 13-4-2
 * Time: 下午3:02
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "T_BIZ_ZGWZJHMX")
@Where(clause = "deleted!='1'")
public class Zgwzjhmx extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqZgwzjhmx", allocationSize = 1, sequenceName = "SEQ_BIZ_ZGWZJHMX")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqZgwzjhmx")
    private Long id;
    // 物资规格
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "WZGG_ID")
    private Gg wzgg;
    // 规格型号
    private String ggxh;
    // 产地
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "SJZDZ_CD_ID")
    private Sjzdz cd;
    // 申报数量
    private Double sbsl;
    // 自购物资计划
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "ZGWZJH_ID")
    private Zgwzjh zgwzjh;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Gg getWzgg() {
        return wzgg;
    }

    public void setWzgg(Gg wzgg) {
        this.wzgg = wzgg;
    }

    public Sjzdz getCd() {
        return cd;
    }

    public void setCd(Sjzdz cd) {
        this.cd = cd;
    }

    public Double getSbsl() {
        return sbsl;
    }

    public void setSbsl(Double sbsl) {
        this.sbsl = sbsl;
    }

    public Zgwzjh getZgwzjh() {
        return zgwzjh;
    }

    public void setZgwzjh(Zgwzjh zgwzjh) {
        this.zgwzjh = zgwzjh;
    }

    public String getGgxh() {
        return ggxh;
    }

    public void setGgxh(String ggxh) {
        this.ggxh = ggxh;
    }
}
